// vue.config.js
const path = require('path');
function resolve(dir) {
    return path.join(__dirname, dir)
}
module.exports = {
    
    lintOnSave: false,
    publicPath: './static/',
    chainWebpack: config => {
        //路径配置
        config.resolve.alias
            .set('assets', resolve('src/assets'))
            .set('styles', resolve('src/assets/styles'))
    },

    // webpack-dev-server 相关配置  
    devServer: {
        // 调试端口
        // port: 8989
        https: true,
        open: true, //浏览器自动打开页面
        proxy: {
            '/api': {
                target: 'https://testcarmng.sshhui.com',
                ws: true,
                changeOrigin: true,
                pathRewrite: {
                    '^/api': '/'
                }
            }
        },

    }
    //其他配置....
}